package fr.inria.phoenix.scenario.bwsnfirefighting.impl.device;

import fr.inria.diagen.core.ServiceConfiguration;
import fr.inria.diagen.core.exception.DiaGenException;
import fr.inria.phoenix.scenario.bwsnfirefighting.framework.datatype.DeviceStatus;
import fr.inria.phoenix.scenario.bwsnfirefighting.framework.distributed.light.Light;

public class LightImpl extends Light {

	public LightImpl(ServiceConfiguration serviceConfiguration,
			Boolean activated) {
		super(serviceConfiguration, activated);
		// TODO Auto-generated constructor stub
	}

	@Override
	protected void postInitialize(){
		this.setStatus(DeviceStatus.WORKING);
	}

	@Override
	protected void deactivate() throws DiaGenException {
		this.setActivated(false);
	}

	@Override
	protected void activate() throws DiaGenException {
		this.setActivated(true);
	}

}
